var editData="";
var customerId=$.getUrlVar('customerId');
var familyId=$.getUrlVar('familyId');

$(function(){
$.get("/index.php?m=Admin&c=FamilyMember&a=read&customer_id="+customerId+'&family_id='+familyId,function(data){
	if(data.stat==1){
		$("#uid").attr("value",data.data.id);
		$(".family").attr("value",data.data.family.address);
		$(".familymember").attr("value",data.data.name);
		$(".tel").attr("value",data.data.customer.tel);
		$(".appellation").attr("value",data.data.appellation);
		$("#prefix").find("option").each(function(){
			if($(this).attr("value")==data.data.prefix){
				$(this).attr("selected","selected");
			}
		});
	}else{
		console.log(data.msg);
	}
});

	
})
